Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cms: Don't insert signing time attribute by default. #1148

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

bkstein
Copy link
Contributor

@bkstein bkstein commented Jul 11, 2023

The current implementation of SignedDataBuilder inserted a signing time attribute by default. This was removed, as it is not required ans might even be unwanted.

@bkstein bkstein mentioned this pull request Jul 11, 2023
Copy link
Member

@baloo baloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a requirement to have it included by default in RFC 5652

Copy link
Contributor

@carl-wallace carl-wallace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (and worked in context of the SCEP usage I mentioned before). I had a question re: whether always using signed attributes was OK but nothing in 5652 compels one to not use content type and message digest attributes, so this seems fine.

@tarcieri tarcieri merged commit 5b477c3 into RustCrypto:master Jul 12, 2023
10 checks passed
baloo added a commit to baloo/formats that referenced this pull request Jul 14, 2023
Added
- `SignedData` builder (RustCrypto#1051)

Changed
- Deprecate `pkcs7` in favor of `cms` (RustCrypto#1062)
- der: add `SetOf(Vec)::insert(_ordered)`; deprecate `add` (RustCrypto#1067)
- Re-enable all minimal-versions checks (RustCrypto#1071)

Fixed
- Don't insert signing time attribute by default (RustCrypto#1148)
- Fixed encoding of `SubjectKeyIdentifier` (RustCrypto#1152)
@baloo baloo mentioned this pull request Jul 14, 2023
baloo added a commit that referenced this pull request Jul 14, 2023
Added
- `SignedData` builder (#1051)

Changed
- Deprecate `pkcs7` in favor of `cms` (#1062)
- der: add `SetOf(Vec)::insert(_ordered)`; deprecate `add` (#1067)
- Re-enable all minimal-versions checks (#1071)

Fixed
- Don't insert signing time attribute by default (#1148)
- Fixed encoding of `SubjectKeyIdentifier` (#1152)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants